//
//  YeeKindListVC.m
//  YeeShopProject
//
//  Created by CoderYee on 2017/3/16.
//  Copyright © 2017年 CoderYee. All rights reserved.
//

#import "YeeKindListVC.h"
#import "YeeKindListHeaderView.h"
#import "XRCollectionVideoTableCell.h"
@interface YeeKindListVC ()
{
    YeeKindListHeaderView *_headerView;
    
    
}
@end

@implementation YeeKindListVC

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}
-(void)addOwnViews
{
    [super addOwnViews];
    [self addheaderView];
}

-(void)addNavbarView
{
    [super addNavbarView];
    self.title=@"商品列表";
}
-(void)configOwnViews
{
    [super configOwnViews];
    [self.tableView setFrame:CGRectMake(0, 40, kMainScreenWidth, kcontentViewHeight-40)];
     [self.tableView registerClass:[XRCollectionVideoTableCell class] forCellReuseIdentifier:[XRCollectionVideoTableCell cellIdentifier]];
}
-(void)addheaderView
{
    _headerView=[[YeeKindListHeaderView alloc] initWithFrame:CGRectMake(0, 0, kMainScreenWidth, 40)];
    [self.view addSubview:_headerView];
    
}
-(void)bindViewModel
{
    [super bindViewModel];
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 10;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    XRCollectionVideoTableCell *cell=[tableView dequeueReusableCellWithIdentifier:[XRCollectionVideoTableCell cellIdentifier] forIndexPath:indexPath];
    
    return cell;
}
-(UIView*)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
{
    UIView *view=[[UIView alloc] init];
    return view;
}
-(UIView*)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
    UIView *view=[[UIView alloc] initWithFrame:CGRectMake(0, 0, kMainScreenWidth, 0.01)];
    return view;
}
-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
{
    return 0.01;
}
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
    return 0.01;
}

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    return 85;
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
@end
